import java.util.Scanner;

public class text1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数");
        int a = sc.nextInt();
        System.out.println("请在输入一个数");
        int b = sc.nextInt();
        int sum = add(a, b);
        System.out.print("两个数的和为: ");
        System.out.println(sum);
    }

    public static int add(int a, int b) {
        return a + b;
    }
}
